
package uestc.bitman.edxapp;

/**
 * @author hackeris
 * @category Global configurations of this app
 */
public class EdxAppConfigurations {

    public static final String APP_PATH = "/uestc/";

    public static final String DOWNLOAD_PATH = "/uestc/downloaded/";

    public static final String DATA_PATH = "/uestc/data/";

    public static final String SERVER_DOMAIN = "http://222.197.179.3:8000";

    // public static final String SERVER_DOMAIN = "http://10.50.24.119";

    public static final String LOGIN_URL = "/login_ajax";

    public static final String APP_DASHBOARD_URL = "/app_dashboard";

    public static final String APP_COURSES_LIST = "/app_courses";

    public static final String APP_CHANGE_ENROLL = "/change_enrollment";

    public static final String CHANGE_ENROLLMENT_COURSE_ID = "course_id";

    public static final String CHANGE_ENROLLMENT_ACTION = "enrollment_action";

    public static final String CHANGE_ENROLLMENT_UNENROLL_ACTION = "unenroll";

    public static final String CHANGE_ENROLLMENT_ENROLL_ACTION = "enroll";

    public static final String USER_EMAIL_KEY_NAME = "email";

    public static final String USER_PASSWORD_KEY_NAME = "password";

    public static final String USER_REMEMBER_KEY_NAME = "remember";

    public static final String LOCAL_PLAYER_URL = "file:///android_asset/player.html";

    // public static final String ONLINE_PLAYER_URL =
    // "http://10.50.1.4/player.html";

    public static final int DEFAULT_DOWNLOAD_THREAD_NUM = 4;

    public static final int HTTP_REQUEST_TIMEOUT = 10 * 1000;

    public static final int HTTP_DATA_WAITING_TIMEOUT = 20 * 1000;

    public static String createRequestUrl(String subUrl) {
        return SERVER_DOMAIN + subUrl;
    }
}
